/**
 * 我的文章
 * @returns
 */
export const useFindMyTopicsPageApi = (body) => {
    return useHttpPost("/v1/user/center/bbs/list",{body})
}

/**
 * 我购买的文章
 * @returns
 */
export const useFindMyUserBuyBbsPageApi  = (body) => {
    return useHttpPost(`/v1/user/center/bbs/buy`,{body})
}

/**
 * 收藏文章
 * @returns
 */
export const useFindBbsUserFavPageApi = (body) => {
    return useHttpPost("/v1/user/center/bbs/fav",{body})
}

/**
 * 喜欢文章
 * @returns
 */
export const useFindBbsUserLikePageApi = (body) => {
    return useHttpPost("/v1/user/center/bbs/like",{body})
}

/**
 * 足迹文章
 * @returns
 */
export const useFindMyBroswerTopicsPageApi = (body) => {
    return useHttpPost("/v1/user/center/bbs/broswer",{body})
}

/**
 * 上架文章
 * @returns
 */
export const useUpdateTopicStatusUpApi = (id) => {
    return useHttpPost(`/v1/user/center/bbs/status/up?id=${id}`,{})
}

/**
 * 下架文章
 * @returns
 */
export const useUpdateTopicStatusDownApi = (id) => {
    return useHttpPost(`/v1/user/center/bbs/status/down?id=${id}`,{})
}

/**
 * 删除文章
 * @returns
 */
export const useDelTopicByIdApi = (id) => {
    return useHttpPost(`/v1/user/center/bbs/delete?id=${id}`,{})
}

/**
 * 彻底删除文章
 * @returns
 */
export const useRemoveTopicByIdUpApi = (id) => {
    return useHttpPost(`/v1/user/center/bbs/remove?id=${id}`,{})
}

/**
 * 恢复删除
 * @returns
 */
export const useRecoverTopicByIdApi = (id) => {
    return useHttpPost(`/v1/user/center/bbs/recover?id=${id}`,{})
}

/**
 * 评论控制
 * @returns
 */
export const useUpdateCommentFlagTopicByIdApi = (id,commentFlag) => {
    return useHttpPost(`/v1/user/center/bbs/control?id=${id}&commentFlag=${commentFlag}`,{})
}

/**
 * 取消收藏
 * @returns
 */
export const useCancelBbsFavApi = (id) => {
    return useHttpPost(`/v1/user/center/bbs/cancel/fav?id=${id}`,{})
}

/**
 * 取消点赞
 * @returns
 */
export const useCancelBbsLikeApi = (id) => {
    return useHttpPost(`/v1/user/center/bbs/cancel/like?id=${id}`,{})
}


/**
 * 删除浏览记录
 * @returns
 */
export const useRemoveBbsBroswerApi = (id) => {
    return useHttpPost(`/v1/user/center/bbs/remove/broswer?id=${id}`,{})
}